package com.wsq.coroutine.model

import android.util.Log
import com.wsq.coroutine.bean.LoginData
import com.wsq.coroutine.retrofit.Api
import com.wsq.coroutine.retrofit.HttpClient

/**
 *
 *Date:2022/5/25
 *Time:9:44
 *author:wushengqi
 */
object MainModel {
    suspend fun getDemo():LoginData{
        Log.e("Main", "getDemo() 当前线程：" + Thread.currentThread().name)
        return HttpClient.retrofit.create(Api::class.java).getDemo()
    }
}